﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QRCode2.Models
{
    public class AgentComment
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }
        public string UserName { get; set; }
        public string AgentUserName { get; set; }
        public string QRCode { get; set; }
        public string Comment { get; set; }
        public DateTime CommentTime { get; set; }
        public bool Active { get; set; }
    }

    public class AgentCommentDBContext : DbContext
    {
        public DbSet<AgentComment> AgentComments { get; set; }

    }
}